<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 13哥 <321055156@qq.com.com>
// +----------------------------------------------------------------------
namespace app\fowl\model;
use think\Model;
class ImsXbFindModel extends Model
{
    //获取音频对应的用户信息
    public function getuserinfo()
    {
        return $this->hasOne('ImsMemberModel', 'id', 'user_id')->field('id,staff_name,staff_number');
    }

    //获取音频对应的分类名称
    public function getcategoryinfo()
    {
        return $this->hasOne('PortalCategoryModel', 'id', 'type_id')->field('id,name');
    }

}